<?php
/**
 * @return
 * @author 朱乐斌
 * @date
 */

namespace app\api\model;

use think\Model;

class EducationModel extends Model
{

    protected $table = 'gx_education';

    public function educationDate()
    {
        return $this->hasMany(SchoolModel::class,'id','school_id')->field('id,name');
    }
    public function schoolName()
    {
        return $this->hasMany(SchoolModel::class, 'id', 'school_id')->field('id,name');
    }

}